#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"************************#include "poly.h"
 int main()
{
	Polynomial a,b;
	cout<<"*******************************************************"<<endl;
	cout<<"*             CHUONG TRINH TAO VA SU DUNG             *"<<endl; 
	cout<<"*     CAC DOI TUONG( OBJECTS ),PHUONG THUC( METHODS)  *"<<endl;
	cout<<"*                  CUA LOP POLYNOMIAL                 *"<<endl;
	cout<<"*******************************************************"<<endl;
	cout<<"Nhap da thuc A"<<endl;
	cin>>a;
	cout<<a;
	cout<<endl;
	cout<<"-------------------------------------------------------------------"<<endl;
	cout<<"Nhap gia tri cua bien X can tinh:";
	int i;
	cin>>i;
	cout<<"Gia tri cua bieu thuc tai X="<<i<<": ";
	cout<<a(i)<<endl;
	cout<<"-------------------------------------------------------------------"<<endl;
	cout<<"Nhap bac cua he so can biet: ";
	int j;
	cin>>j;
	cout<<"He so cua so hang co bac la "<<j<<": ";
	cout<<a[j]<<endl;
	cout<<"Nhap da thuc B:"<<endl;
	cin>>b;
	cout<<b;
	cout<<endl;
	cout<<" =================================================="<<endl;
	cout<<"|| Tong cua 2 da thuc A + B:"<<endl;
	cout<<"||"<<a+b<<endl;
	cout<<"|| Hieu cua 2 da thuc A - B:"<<endl;
	cout<<"||"<<a-b<<endl;
	cout<<"|| Tich cua 2 da thuc A*B:"<<endl;
	cout<<"||"<<a*b<<endl;
	cout<<"|| Thuong cua 2 da thuc A/B : "<<endl;
	cout<<"||"<<a/b<<endl;
	cout<<" =================================================="<<endl;
	cout<<"---------------------LE NHAN CN10A - 1051120042-----------------"<<endl;
	getch();
	return 0;
}
